import { axiosGet } from '@/api/sysSetting.js'
import renderUrl from "@/api/apiHost";

const state = {
  tableData: []
}

const actions = {
  getTableData ({ state, dispatch }) {
    axiosGet(
      renderUrl("panoramahall")+'/panoramahall/zhyq/getZhyqCustInfoList'
    ).then(res => {
      console.log(res,"res")
      return new Promise(async resolve => {
        state.tableData = res.result;
        // end
        resolve();
    })
    })
  },
}
export default {
  namespaced: true,
  state,
  actions,
}
